package com.andaily.domain.cooking.settlement;

import com.andaily.domain.AbstractDomain;
import com.andaily.domain.user.User;

import java.math.BigDecimal;

/**
 * 第个用户在结算中承担的费用
 *
 * @author Shengzhao Li
 */
public class UserSettlement extends AbstractDomain {

    private User user;

    private BigDecimal amount;
    //该用户应该支付的费用
    private BigDecimal payableAmount;

    public UserSettlement() {
    }

    public UserSettlement(User user) {
        this.user = user;
    }

    public void update(BigDecimal amount, BigDecimal payableAmount) {
        this.amount = amount;
        this.payableAmount = payableAmount;
    }

    public User user() {
        return user;
    }

    public BigDecimal amount() {
        return amount;
    }

    public BigDecimal payableAmount() {
        return payableAmount;
    }
}
